<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ArrivalNotice extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('arrival_notice', function (Blueprint $table) {
            $table->increments('an_id');
            $table->integer('good_id')->unsigned()->comment('商品id');
            $table->string('goods_name')->comment('商品名称');
            $table->integer('member_id')->unsigned()->comment('会员id');
            $table->integer('store_id')->unsigned()->comment('店铺id');
            $table->string('an_addtime')->comment('添加时间');
            $table->string('an_email')->comment('邮箱');
            $table->string('an_mobile')->comment('手机号');
            $table->tinyInteger('an_type')->unsigned()->default(1)->comment('状态 1到货通知，2预售');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('arrival_notice');
    }
}
